<template>
  <div class="container">
    <div class="row pt-5">
      <div class="col-md-12">
        <div class="card">
          <div class="card-body">
            <h5 class="card-title">疫苗运输方系统</h5>
            <div class="input-group mb-3">
              <span class="input-group-text">疫苗溯源地址</span>
              <input
                id="id1"
                type="text"
                class="form-control"
                placeholder="输入疫苗溯源地址"
              />
            </div>
            <div class="input-group mb-3">
              <span class="input-group-text">疫苗接收时间</span>
              <input
                id="time2"
                type="datetime-local"
                class="form-control"
                placeholder="输入疫苗接收时间"
              />
            </div>
            <div class="input-group mb-3">
              <span class="input-group-text">运输企业地址</span>
              <input
                id="addr2"
                type="text"
                class="form-control"
                placeholder="输入运输企业地址"
              />
            </div>
            <button
              class="btn btn-primary"
              id="arriveDeliveryEnterprise"
              @click="arriveDeliveryEnterprise"
              type="button"
            >
              疫苗确认运输
            </button>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "MyTranstion",
  methods: {
    async arriveDeliveryEnterprise() {
      var id1 = $("#id1").val();
      var time2 = $("#time2").val();
      var addr2 = $("#addr2").val();
      await this.$Appjs.methods
      .arriveDeliveryEnterprise(id1,time2,toString(),addr2).send({
        from: "0xbD7eFb6A883186bf6Bd53Ad1DcA58465276cfCac",
        // gas: 150000,
        // gasPrice: 3000000000,
        //value: 3000000,
      });
      alert('运输确认')
    },
  },
};
</script>

<style>
</style>